package com.wootion.cims.module.systemsetting.dictionary.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author YaoYiChao
 */
@Data
@TableName(value = "sys_dictionary")
@ApiModel(value = "数据字典")
@Accessors(chain = true)
public class SysDictionary implements Serializable {

    private static final long serialVersionUID = 821941936512283734L;
    
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "类别")
    @NotBlank(message = "类别不可为空")
    private String type;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "是否可用")
    private Boolean enabled;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建人id")
    private String createUserid;

    @ApiModelProperty(value = "更新人id")
    private String updateUserid;
}

